﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FE7 RID: 4071
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournCurAreaInfo : IMessage<RogueTournCurAreaInfo>, IMessage, IEquatable<RogueTournCurAreaInfo>, IDeepCloneable<RogueTournCurAreaInfo>, IBufferMessage
	{
		// Token: 0x1700337B RID: 13179
		// (get) Token: 0x0600B609 RID: 46601 RVA: 0x001EB357 File Offset: 0x001E9557
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournCurAreaInfo> Parser
		{
			get
			{
				return RogueTournCurAreaInfo._parser;
			}
		}

		// Token: 0x1700337C RID: 13180
		// (get) Token: 0x0600B60A RID: 46602 RVA: 0x001EB35E File Offset: 0x001E955E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournCurAreaInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700337D RID: 13181
		// (get) Token: 0x0600B60B RID: 46603 RVA: 0x001EB370 File Offset: 0x001E9570
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournCurAreaInfo.Descriptor;
			}
		}

		// Token: 0x0600B60C RID: 46604 RVA: 0x001EB377 File Offset: 0x001E9577
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournCurAreaInfo()
		{
		}

		// Token: 0x0600B60D RID: 46605 RVA: 0x001EB380 File Offset: 0x001E9580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournCurAreaInfo(RogueTournCurAreaInfo other) : this()
		{
			this.pendingAction_ = ((other.pendingAction_ != null) ? other.pendingAction_.Clone() : null);
			this.rogueMagicBattleConst_ = other.rogueMagicBattleConst_;
			this.iJPJDJPBPNJ_ = other.iJPJDJPBPNJ_;
			this.rogueSubMode_ = other.rogueSubMode_;
			this.subAreaId_ = other.subAreaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B60E RID: 46606 RVA: 0x001EB3F0 File Offset: 0x001E95F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournCurAreaInfo Clone()
		{
			return new RogueTournCurAreaInfo(this);
		}

		// Token: 0x1700337E RID: 13182
		// (get) Token: 0x0600B60F RID: 46607 RVA: 0x001EB3F8 File Offset: 0x001E95F8
		// (set) Token: 0x0600B610 RID: 46608 RVA: 0x001EB400 File Offset: 0x001E9600
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPendingAction PendingAction
		{
			get
			{
				return this.pendingAction_;
			}
			set
			{
				this.pendingAction_ = value;
			}
		}

		// Token: 0x1700337F RID: 13183
		// (get) Token: 0x0600B611 RID: 46609 RVA: 0x001EB409 File Offset: 0x001E9609
		// (set) Token: 0x0600B612 RID: 46610 RVA: 0x001EB411 File Offset: 0x001E9611
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueMagicBattleConst
		{
			get
			{
				return this.rogueMagicBattleConst_;
			}
			set
			{
				this.rogueMagicBattleConst_ = value;
			}
		}

		// Token: 0x17003380 RID: 13184
		// (get) Token: 0x0600B613 RID: 46611 RVA: 0x001EB41A File Offset: 0x001E961A
		// (set) Token: 0x0600B614 RID: 46612 RVA: 0x001EB422 File Offset: 0x001E9622
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint IJPJDJPBPNJ
		{
			get
			{
				return this.iJPJDJPBPNJ_;
			}
			set
			{
				this.iJPJDJPBPNJ_ = value;
			}
		}

		// Token: 0x17003381 RID: 13185
		// (get) Token: 0x0600B615 RID: 46613 RVA: 0x001EB42B File Offset: 0x001E962B
		// (set) Token: 0x0600B616 RID: 46614 RVA: 0x001EB433 File Offset: 0x001E9633
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueSubMode
		{
			get
			{
				return this.rogueSubMode_;
			}
			set
			{
				this.rogueSubMode_ = value;
			}
		}

		// Token: 0x17003382 RID: 13186
		// (get) Token: 0x0600B617 RID: 46615 RVA: 0x001EB43C File Offset: 0x001E963C
		// (set) Token: 0x0600B618 RID: 46616 RVA: 0x001EB444 File Offset: 0x001E9644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubAreaId
		{
			get
			{
				return this.subAreaId_;
			}
			set
			{
				this.subAreaId_ = value;
			}
		}

		// Token: 0x0600B619 RID: 46617 RVA: 0x001EB44D File Offset: 0x001E964D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournCurAreaInfo);
		}

		// Token: 0x0600B61A RID: 46618 RVA: 0x001EB45C File Offset: 0x001E965C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournCurAreaInfo other)
		{
			return other != null && (other == this || (object.Equals(this.PendingAction, other.PendingAction) && this.RogueMagicBattleConst == other.RogueMagicBattleConst && this.IJPJDJPBPNJ == other.IJPJDJPBPNJ && this.RogueSubMode == other.RogueSubMode && this.SubAreaId == other.SubAreaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B61B RID: 46619 RVA: 0x001EB4DC File Offset: 0x001E96DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.pendingAction_ != null)
			{
				num ^= this.PendingAction.GetHashCode();
			}
			if (this.RogueMagicBattleConst != 0U)
			{
				num ^= this.RogueMagicBattleConst.GetHashCode();
			}
			if (this.IJPJDJPBPNJ != 0U)
			{
				num ^= this.IJPJDJPBPNJ.GetHashCode();
			}
			if (this.RogueSubMode != 0U)
			{
				num ^= this.RogueSubMode.GetHashCode();
			}
			if (this.SubAreaId != 0U)
			{
				num ^= this.SubAreaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B61C RID: 46620 RVA: 0x001EB57C File Offset: 0x001E977C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B61D RID: 46621 RVA: 0x001EB584 File Offset: 0x001E9784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B61E RID: 46622 RVA: 0x001EB590 File Offset: 0x001E9790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SubAreaId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.SubAreaId);
			}
			if (this.RogueMagicBattleConst != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.RogueMagicBattleConst);
			}
			if (this.IJPJDJPBPNJ != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.IJPJDJPBPNJ);
			}
			if (this.RogueSubMode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.RogueSubMode);
			}
			if (this.pendingAction_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.PendingAction);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B61F RID: 46623 RVA: 0x001EB640 File Offset: 0x001E9840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.pendingAction_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PendingAction);
			}
			if (this.RogueMagicBattleConst != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueMagicBattleConst);
			}
			if (this.IJPJDJPBPNJ != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.IJPJDJPBPNJ);
			}
			if (this.RogueSubMode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueSubMode);
			}
			if (this.SubAreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubAreaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B620 RID: 46624 RVA: 0x001EB6E0 File Offset: 0x001E98E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournCurAreaInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.pendingAction_ != null)
			{
				if (this.pendingAction_ == null)
				{
					this.PendingAction = new RogueCommonPendingAction();
				}
				this.PendingAction.MergeFrom(other.PendingAction);
			}
			if (other.RogueMagicBattleConst != 0U)
			{
				this.RogueMagicBattleConst = other.RogueMagicBattleConst;
			}
			if (other.IJPJDJPBPNJ != 0U)
			{
				this.IJPJDJPBPNJ = other.IJPJDJPBPNJ;
			}
			if (other.RogueSubMode != 0U)
			{
				this.RogueSubMode = other.RogueSubMode;
			}
			if (other.SubAreaId != 0U)
			{
				this.SubAreaId = other.SubAreaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B621 RID: 46625 RVA: 0x001EB784 File Offset: 0x001E9984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B622 RID: 46626 RVA: 0x001EB790 File Offset: 0x001E9990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 24U)
					{
						this.SubAreaId = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.RogueMagicBattleConst = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.IJPJDJPBPNJ = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.RogueSubMode = input.ReadUInt32();
						continue;
					}
					if (num == 114U)
					{
						if (this.pendingAction_ == null)
						{
							this.PendingAction = new RogueCommonPendingAction();
						}
						input.ReadMessage(this.PendingAction);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004992 RID: 18834
		private static readonly MessageParser<RogueTournCurAreaInfo> _parser = new MessageParser<RogueTournCurAreaInfo>(() => new RogueTournCurAreaInfo());

		// Token: 0x04004993 RID: 18835
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004994 RID: 18836
		public const int PendingActionFieldNumber = 14;

		// Token: 0x04004995 RID: 18837
		private RogueCommonPendingAction pendingAction_;

		// Token: 0x04004996 RID: 18838
		public const int RogueMagicBattleConstFieldNumber = 8;

		// Token: 0x04004997 RID: 18839
		private uint rogueMagicBattleConst_;

		// Token: 0x04004998 RID: 18840
		public const int IJPJDJPBPNJFieldNumber = 10;

		// Token: 0x04004999 RID: 18841
		private uint iJPJDJPBPNJ_;

		// Token: 0x0400499A RID: 18842
		public const int RogueSubModeFieldNumber = 12;

		// Token: 0x0400499B RID: 18843
		private uint rogueSubMode_;

		// Token: 0x0400499C RID: 18844
		public const int SubAreaIdFieldNumber = 3;

		// Token: 0x0400499D RID: 18845
		private uint subAreaId_;
	}
}
